<?
if( !defined( 'ABSPATH') && !defined('WP_UNINSTALL_PLUGIN') )
    exit();

$page = get_page_by_title( 'Woodle' );
wp_delete_post($page->ID);

global $wpdb;
$course_table = $wpdb -> prefix . "woo_course";
$lecture_table = $wpdb -> prefix . "woo_lecture";
$material_table = $wpdb -> prefix . "woo_material";
$wpdb->query("DROP TABLE IF EXISTS ".$material_table);
$wpdb->query("DROP TABLE IF EXISTS ".$lecture_table);	
$wpdb->query("DROP TABLE IF EXISTS ".$course_table);
?>